package com.itheima.config;


import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.sql.DataSource;

@Configuration //我 的作用 等同于 一个配置文件

//代理配置文件 <context:component-scan base-package="包名">....
@ComponentScan({"com.itheima.service","com.itheima.dao","com.itheima.controller"})
//可以通过 import 导入其他的配置类
@Import({DatasourceConfig.class,RedisConfig.class})
public class SpringConfig {




}
